<?php $this->load->view('inc/header'); ?>

<?php
	$this->db->where('blog_id',$id);
	$query = $this->db->get('blog');
	foreach($query->result() as $q){
		$blog_entry_name = $q->blog_entry_name;
		$blog_content = $q->blog_content;
	}
?>

<!--one colunm-->
<div class="grid_12" style="background-color:#CCCCCC; padding-top:20px; padding-bottom:15px;">
<div class="grid_12 alpha" id="one_cols1">
	<div id="topic" style="position:relative;">Edit Blog entry</div>
</div>
<div class="grid_12 alpha"  id="one_cols2">
	
	<div id="add_entry" style="padding-left:15px;">
    <form method="post" action="<?=base_url()?>blog/update_entry">
    	<div id="entry_name"><label><img src="<?=base_url()?>images/graphic/balloon-ellipsis.png"/>&nbsp;Entry Name: </label><input name="blog_entry_name" type="text" id="blog_entry_name" size="65" value="<?=$blog_entry_name?>"/>
    	</div>
    	<div id="editor">
            <br/>
            <textarea name="content_2" id="content_2" >
            <?=$blog_content?>
            </textarea>
            <?php echo display_ckeditor($ckeditor_2); ?>
            </textarea>
            <input type="hidden" name="blog_id" id="blog_id" value="<?=$id?>"/>
        </div>
        </form>
    </div>
</div>

<div class="grid_12 alpha" id="one_cols3"></div>
</div>
<div class="clear"></div>
<!--end one column-->

<?php $this->load->view('inc/footer'); ?>